import 'package:flutter/material.dart';
import 'package:xinxuan/utils/color_util.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

class SeckillOrderDetailInfoBody extends StatelessWidget {

  final String title;
  final List<Widget> children;
  SeckillOrderDetailInfoBody({
    required this.title,
    required this.children
  });

  @override
  Widget build(BuildContext context) {
    return Container(
      color: bgWhiteColor,
      padding: EdgeInsets.symmetric(horizontal: 16.w),
      child: Column(
        crossAxisAlignment: CrossAxisAlignment.start,
        children: [
          Container(
            height: 45.h,
            alignment: Alignment.centerLeft,
            child: Text(
              title,
              style: TextStyle(
                color: textBlackColor,
                fontSize: 16.sp,
                fontWeight: FontWeight.bold
              ),
            ),
          ),
          Column(
            children: children.map((item) {
              return item;
            }).toList()
          )
        ],
      ),
    );
  }
}